<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet"
	href="<%=path%>/res/common/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
</head>

<body>
	<form id="myform" action="stumembersadd.do" method="post">
		<table class="table" style="width: 800px; margin: auto;">
			<tbody>
				<tr>
					<td>
						<label for="inputPassword" class="col-sm-2 control-label"
						style="line-height: 37px; margin: 0; padding: 0; width: 100px;">学生姓名</label>
						<div class="col-sm-6">
							<input class="form-control" name="stuname" placeholder="请输入学生姓名">
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<label for="inputPassword" class="col-sm-2 control-label"
						style="line-height: 37px; margin: 0; padding: 0; width: 100px;">博客地址</label>
						<div class="col-sm-6">
							<input class="form-control" name="blogurl" placeholder="请输入博客地址,格式:http://www.cnblogs.com/xxx/">
						</div>
					</td>
				</tr>
				<tr>
					<td><label for="inputPassword" class="col-sm-2 control-label"
						style="line-height: 37px; margin: 0; padding: 0; width: 100px;">录入班级</label>
						<div class="col-sm-6">
							<select name="classoption" class="selectpicker show-tick form-control">
								<c:forEach var="li" items="${listClass}" begin="0" end="${listClass.size()}" varStatus="vs">
									<option value="${li.classId }">${li.className }</option>
								</c:forEach>
							</select>
						</div></td>
				<tr>
					<td>
						<button type="sumbit" class="col-sm-4 btn btn-default">成员录入</button>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	<%
	String stuupdate = (String)request.getAttribute("stuupdate"); 
	if (stuupdate == "1") {
	%>
		<script type="text/javascript">
        	alert("学生信息录入成功");
		</script>
	<% 
	}
	%>
</body>
</html>
